<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>会员分组</title>

	
	
    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/Theme1/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="__PUBLIC__/Theme1/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

    <link href="__PUBLIC__/Theme1/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/Theme1/css/style.min.css?v=4.1.0" rel="stylesheet">

	
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
				
                    <div class="ibox-title">
                        <h5>会员分组</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
					
					
                    <div class="ibox-content">
                        <table class="table table-striped table-bordered table-hover dataTables-example">

                            <thead>
                                <tr>
									<th>用户编号</th>
                                    <th>组人数</th>
									<th>是否分组</th>
									<th>满组时间</th>
									<th>分组时间</th>
									<th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            <?php
								$users = M("users");
							?>
                            <foreach name="level_list" item="val_level">	
								
								
								<tr>
									<td><{$val_level.loginname}></td>
                                    <td><{$val_level.teamCount}></td>
									<td><?php echo $val_level['is_fen'] ? "已分组":"未分组" ?></td>
									<td><?php echo date('Y-m-d H:i:s',$val_level['addtime']) ?></td>
									<td><?php echo $val_level['is_fen'] ? date('Y-m-d H:i:s',$val_level['fentime']) :"" ?></td>
									<td>
									<?php echo $val_level['is_fen'] ? "已分组" :  ($val_level['teamCount']==27 ? "<a href='__URL__/FenTeam/tname/{$val_level[id]}'>去分组</a>":"")   ?>

									</td>
								</tr>
							</foreach>
							
                            </tbody>
                            
                        </table>
                       
					<div class="result page"><{$page}></div>
                    </div>

				</div>
			</div>
		</div>	
	</div>
	
    <script src="__PUBLIC__/Theme1/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/Theme1/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/jeditable/jquery.jeditable.js"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="__PUBLIC__/Theme1/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="__PUBLIC__/Theme1/js/content.min.js?v=1.0.0"></script>
    <script>
    </script>
</body>	
       
    
</body>

</html>
